package com.example.nickhu.myapplication;

import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;

import com.example.nickhu.myapplication.mdedittext.MdEditText;

public class MainActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        findViewById(R.id.textview).setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
               MdEditText editText = (MdEditText) findViewById(R.id.editetext);
                editText.setError("胜利大街老苏减肥是");
            }
        });
    }
}
